package com.xl.web.service.zoom;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xl.base.annotation.DataSource;
import com.xl.core.enums.SourceEnum;
import com.xl.web.dao.zoom.SysParamDao;
import com.xl.web.entity.zoom.Company;
import com.xl.web.entity.zoom.SysParam;
@Service(value = "sysService")
public class SysService<T extends SysParam> {
	@Resource
	private SysParamDao<SysParam> sysDao;
	@DataSource(source = SourceEnum.TYPE_SLAVE)
	public  SysParam  querySysParam(){
		List<SysParam> sysParams = sysDao.querySysParam();
		SysParam sysParam = new SysParam();
		if(sysParams!=null && sysParams.size()>0){
			sysParam = sysParams.get(0);
		}
		return sysParam;
	}
}
